// 内部封装对对象的底层操作
// reflect的作用时统一对象的操作方式

const obj = {
    name: "jack",
    age: 18,
};
// console.log(Object.keys(obj));
// console.log("name" in obj);
// console.log(delete obj.age);

console.log(Reflect.ownKeys(obj));
console.log(Reflect.has(obj, "name"));
console.log(Reflect.deleteProperty(obj, "age"));
